package com.xubeizhi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xubeizhi.dto.ArticleDto;
import com.xubeizhi.entity.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ArticleMapper extends BaseMapper<Article> {

    List<Article> selectCategoryPage(@Param("pageNum")Integer pageNum,@Param("pageSize")Integer pageSize);

    List<Article> SearchArticle(@Param("content")String content,@Param("status")String status);

    List<ArticleDto> listArticle(Integer categoryId, String status);
}